#ifndef GPIO_MANAGER_H
#define GPIO_MANAGER_H

#include <stdio.h>

/* GPIO mode */
#define INTPUT	"0"
#define OUTPUT	"1"
#define PULL_UP	"8" /* Bouton poussoir */

#define OFF	"0"
#define ON	"1"

FILE* openGpioModeFile(int numPin);
FILE* openGpioPinFile(int numPin, char* mode);

int pinMode(FILE* modeFile, char* mode);
int pinWrite(FILE* pinFile, char* mode);
int pinRead(FILE* pinFile);

#endif
